package poidemo.controller;

import poidemo.service.DemoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>Title: HiController </p>
 * <p>Description: Web訪問接口 </p>
 * @author  Nelson
 * @date  2020/1/17 8:55
 * @version 1.0
 */
@RestController
public class HiController {

    @Autowired
    DemoService demoService;
    @RequestMapping(value = "/hi",method = RequestMethod.GET)
    public String sayHi(@RequestParam String name){
        return demoService.sayHiFromClientOne(name);
    }
}
